﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace JHMVVMFramework.Task
{
    public class TaskComplatedEventArgs<RestultType>:EventArgs
    {
        public RestultType Result { get; private set; }

        public bool Cancel { get; private set; }

        public Exception Error { get; private set;}

        public object UserState {get ; private set;}

        public TaskComplatedEventArgs(RestultType result, Exception error , bool isCancel, object userState)
            : base()
        {
            Result = result;
            Cancel= isCancel;
            Error = error;
            UserState = userState;
        }
    }
}
